<template>
	<view class="container">
		<uni-steps :options="caseUrgeDutyList" active-color="#007AFF" :active="active" direction="column"></uni-steps>
	</view>
</template>

<script>
	import { getCaseUrgeDutyList} from "@/api/dums/caw/urge.js";
	export default {
		data() {
			return {
				caseId:"",
				caseUrgeDutyList:[],
				active:0
			}
		},
		onLoad(options) {
			this.caseId = options.caseId;
			this.getCaseUrgeDutyList();
		},
		methods: {
			getCaseUrgeDutyList(){
				getCaseUrgeDutyList({caseId:this.caseId}).then(res => {
					console.log(JSON.stringify(res));
					if(res.code == 200){
						this.caseUrgeDutyList = res.rows.map(item => {
							return {
								title:item.dutyTime,
								desc:item.dutyDesc+"("+item.dutyUser+")"
							}
						})
					}
					
				})
			}
		}
	}
</script>

<style>

</style>
